<?php
/*
 * @Date: 2025-05-16 15:35:55
 * @LastEditors: 搬铁的码农 dong2406@126.com
 * @LastEditTime: 2025-05-16 15:55:05
 */

namespace Ldy\Traits\Form\Element;

trait Input{
 /**
     * 列表值前缀文本
     *
     * @param string $text
     * @return $this
     */
    public function prefixText(String $text){
        $this->props(["prefixText"=> $text]);
        return $this;
    }

    /**
     * 列表值后缀文本
     *
     * @param String $text
     * @return $this
     */
    public function suffixText(String $text){
        $this->props(["suffixText"=> $text]);
        return $this;
    }

    public function prefixIcon(String $icon){
        $this->props(["prefixIcon"=> $icon]);
        return $this;
    }

    public function suffixIcon(String $icon){
        $this->props(["suffixIcon"=> $icon]);
        return $this;
    }

    public function prefixButton(String $text){
        $this->props(["prefixButton"=> $text]);
        return $this;
    }

    public function suffixButton(String $text){
        $this->props(["suffixButton"=> $text]);
        return $this;
    }
}